{% load cms_tags sekizai_tags %}
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>{% placeholder "TITLE" %}{% block title %}{% endblock %}</title>
{% block head_quote %}{% endblock %}
{% render_block "css" %}
<link rel="stylesheet" href="/static/weui/style/weui.min.css"/>
<script type="text/javascript" src="/static/js/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
wx.config({
	debug: false,
	appId: '{{jssdk_signature.appid}}',
	timestamp: {{jssdk_signature.timestamp}},
	nonceStr: '{{jssdk_signature.nonce}}',
	signature: '{{jssdk_signature.signature}}',
	jsApiList: [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'hideMenuItems',
		'showMenuItems',
		'hideAllNonBaseMenuItem',
		'showAllNonBaseMenuItem',
		'translateVoice',
		'startRecord',
		'stopRecord',
		'onRecordEnd',
		'playVoice',
		'pauseVoice',
		'stopVoice',
		'uploadVoice',
		'downloadVoice',
		'chooseImage',
		'previewImage',
		'uploadImage',
		'downloadImage',
		'getNetworkType',
		'openLocation',
		'getLocation',
		'hideOptionMen',
		'showOptionMen',
		'closeWindow',
		'scanQRCode',
		'chooseWXPay',
		'openProductSpecificView',
		'addCard',
		'chooseCard',
		'openCard'
	]
});
wx.ready(function () {
	document.querySelector('#closeWindowButton').onclick = function () {
    wx.closeWindow();
  };
});
</script>
<script type="text/javascript" class="dialog js_show">
    $(function(){
        $('#messages').on('click', '.weui-dialog__btn', function(){
            $(this).parents('.js_dialog').fadeOut(200);
        });
    });</script>
<!--自定义CSS&Javascript代码片段begin-->
{% placeholder "CUSTOM_CSS_JS" %}
{% block custom_css_js %}{% endblock %}
<!--自定义CSS&Javascript代码片段end-->
</head>
<body ontouchstart>
<div class="weui-toptips weui-toptips_warn js_tooltips">错误提示</div>
{% if messages %}
{% for message in messages %}
<div id="messages">
  <div class="js_dialog" id="iosDialog1" style="opacity: 1;">
    <div class="weui-mask">
    </div>
    <div class="weui-dialog">
      <div class="weui-dialog__bd">
        {{ message }}
      </div>
      <div class="weui-dialog__ft">
        <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">知道了</a>
      </div>
    </div>
  </div>
</div>
{% endfor %}
{% endif %}
<div class="container" id="container"></div>
{% placeholder "BASE_CONTENT" %}
{% block base_content %}{% endblock %}
{% render_block "js" %}
<br />
<!--<a href="/account/logout/" class="weui-btn weui-btn_primary">注销登录</a>-->
<a href="javascript:;" class="weui-btn weui-btn_plain-default" style="display:none;" id="closeWindowButton">关闭页面</a>

<script src="/static/weui/example/zepto.min.js"></script>
<script src="/static/weui/example/weui.min.js"></script>
</body>
</html>
